package com.htjc.integral.account.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSON;
import com.htjc.integral.account.service.IAccountCheckService;
import com.htjc.integral.common.annotation.InvokeLog;

/**
 * 对账  controller层
 * 
 *
 * @author hlc
 */
@RestController
@RequestMapping(value = "/ac/acct")
public class AcctController {
	
	@Autowired
	IAccountCheckService accountCheckServiceImpl;
	
	/**
	 * 积分对账
	 * @param params
	 * @return
	 */
	@InvokeLog(value="积分对账",params={"acctDate","bussType"})
	@RequestMapping(value = {"/acctCheck"}, produces = {"text/json;charset=UTF-8;", "application/json;"})
	public String changeIntegral(@RequestBody String params){
		return accountCheckServiceImpl.check(JSON.parseObject(params));
	}
	
}
